</head>
<body>
<div class="f-sep10"></div>
<div class="f-sep10"></div>
<div class="m-hd m-tabs">
<h2 class="u-tt">{$info.name}选项管理</h2>
	<div class="more"><a href="javascript:;" onClick="window.location.reload();"><span class="icon">&#xf021;</span> 刷新</a></div>
    <ul>
		<li><a href="<?php echo url('admin_category/index') ?>"><span class="icon">&#xf101;</span> 分类列表</a></li>
        <li><a href='<?php echo url("admin_list/index",array("cid"=>$info["cid"])); ?>'><span class="icon">&#xf101;</span> 属性列表</a></li>
        <li><a class="z-crt" href="javascript:;"><span class="icon">&#xf101;</span> 选项列表</a></li>
		<li><a href="<?php echo url('admin_content/add',array('fid'=>$info['fid'])) ?>" ><span class="icon">&#xf067;</span> 添加选项</a></li>
    </ul>
</div>
<div class="m-list-table">
<table class="m-table m-table-row tablesorter" id="table">
    <thead>
      <tr>
        <th class="cola">ID</th>
        <th>选项名称</th>
		<th>顺序</th>
        <th class="colb">分类操作</th>
      </tr>
      
    </thead>
    <tbody>
    	<!--foreach:{$list $vo}-->
        <tr>
        <td>{$vo.fid}</td>
        <td >{$vo.name} </td>
		<td >{$vo.sequence} </td>
        <td>
        <a class="operating" href="<?php echo url('admin_content/edit',array('id' => $vo['id'])) ?>" ><span class="icon">&#xf040;</span> 修改</a>
        <a class="operating" href="javascript:void(0);" onClick="del('<?php echo url('admin_content/del') ?>','{$vo.id}',this)"><span class="icon">&#xf014;</span> 删除</a>
        
         </td>
      </tr>
        <!--{/foreach}-->
    </tbody>
</table>
</div>
</body>

<script>
var del = new function(){}; 
Do.ready('base','dialog', function() {
	window.del = function del(url,id,obj) {
		ajaxpost({
		name:'删除此选项分类会删除相关联的数据!',
		url:url,
		data:{id:id},
		tip:true,
		success:function(){
			$(obj).parent().parent().remove();
		}
		});
	}
});
</script>